package com.zbkj.crmeb.front.response;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zbkj.crmeb.store.model.StoreBrand;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 商品表
 * </p>
 *
 * @author Mr.Zhang
 * @since 2020-05-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("eb_store_product")
@ApiModel(value="ProductResponse对象", description="商品表")
public class ProductResponse implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "商品id")
    @TableId(value = "id")
    private Integer id;

    @ApiModelProperty(value = "商品主图")
    private String image;
    
    @ApiModelProperty(value = "商品视频")
    private String video;

    @ApiModelProperty(value = "商品推荐图")
    private String recommendImg;

    @ApiModelProperty(value = "所有商品图片")
    private List<String> sliderImage;

    @ApiModelProperty(value = "商品名称")
    private String storeName;

    @ApiModelProperty(value = "分类id")
    private List<Integer> cateId;

    @ApiModelProperty(value = "商品价格")
    private BigDecimal price;

    @ApiModelProperty(value = "市场价")
    private BigDecimal otPrice;

    @ApiModelProperty(value = "首段物流运费")
    @TableField(exist = false)
    private BigDecimal firstPrice;

    @ApiModelProperty(value = "人民币原价")
    private BigDecimal otPriceRmb;

    @ApiModelProperty(value = "折扣")
    private String discount;

    @ApiModelProperty(value = "单位名")
    private String unitName;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "销量")
    private Integer sales;

    @ApiModelProperty(value = "库存")
    private Integer stock;

    @ApiModelProperty(value = "品牌")
    private StoreBrand brand;

    @ApiModelProperty(value = "发货地")
    private Integer stockArea;

    @ApiModelProperty(value = "发货地")
    private String stockAreaName;

    @ApiModelProperty(value = "税费 + 二段物流费用")
    private BigDecimal taxAndSecondPrice;

    @ApiModelProperty(value = "汇率")
    private BigDecimal exchangeRate;

    @ApiModelProperty(value = "尺码集合")
    private List<String> sizeList;

    @ApiModelProperty(value = "新旧程度（二手商品必填）")
    private String degree;

    @ApiModelProperty(value = "会员折扣金额")
    private BigDecimal memberDiscountPrice;

    @ApiModelProperty(value = "标签展示类型1主图,2轮播图")
    private Integer labelDisplayType;

    @ApiModelProperty(value = "标签图标")
    private String labelIconUrl;

    @ApiModelProperty(value = "限时活动秒杀价")
    private BigDecimal spikePrice;

    @ApiModelProperty(value = "是否活动商品0否，1是")
    private Integer activityFlag;

    @ApiModelProperty(value = "付费会员售价")
    private BigDecimal vipPrice;

    @ApiModelProperty(value = "二级会员售价")
    private BigDecimal v2Price;

    @ApiModelProperty(value = "三级会员售价")
    private BigDecimal v3Price;

    @ApiModelProperty(value = "关键字")
    private String keyword;

    @ApiModelProperty(value = "是否是拼团商品0否，1是")
    @TableField(exist = false)
    private Integer activityGroupFlag;

    @ApiModelProperty(value = "拼团活动价格")
    @TableField(exist = false)
    private BigDecimal packagePrice;
    
    @ApiModelProperty(value = "满减活动描述")
    @TableField(exist = false)
    private String channelDiscountDescription;

    @ApiModelProperty(value = "是否优惠价")
    private Integer isPreferential;

    @ApiModelProperty(value = "品牌名称")
    private String brandName;

    @ApiModelProperty(value = "商品原价")
    private BigDecimal oldPrice;

}
